import request from '@/utils/request'
export function getStationAttr() {
  return request({
    url: '/api/sl_station_attr/getlist',
    method: 'post',
    data: { page_no: 1, limit: 1000, sort: 'px', where: {
      // and:[{field:"",operator:"",value:""}]
    }}
  })
}
export function addcad(data){
  return request({
    url: '/api/devfile/addcad',
    method: 'post',
    data:data
  })
}

export function advSearch(data){
  return request({
    url: '/api/station/advsearch',
    method: 'post',
    data:data
  })
}
export function setStation(data) {
  return request({
    url: '/api/station/save',
    method: 'post',
    data
  })
}

export function  getStationGyxf(station_id){
  return request({
    url: '/api/sl_station_technology_assign/getlist',
    method: 'post',
    data: { page_no: 1, limit: 1000, sort: 'id', where: {
        and:[{field:"station_id",operator:"=",value:station_id}]
      }}
  })
}
export function  getStationAttrInfo(station_id){
  return request({
    url: '/api/sl_view_station_attrinfo/getlist',
    method: 'post',
    data: { page_no: 1, limit: 1000, sort: 'id', where: {
        and:[{field:"station_id",operator:"=",value:station_id}]
      }}
  })
}
